package pers.zh.parking.di.component;

import dagger.BindsInstance;
import dagger.Component;

import com.jess.arms.di.component.AppComponent;

import pers.zh.parking.di.module.SignupModule;
import pers.zh.parking.mvp.contract.SignupContract;

import com.jess.arms.di.scope.ActivityScope;

import pers.zh.parking.mvp.ui.activity.SignupActivity;

@ActivityScope
@Component(modules = SignupModule.class, dependencies = AppComponent.class)
public interface SignupComponent {

    void inject(SignupActivity activity);

    @Component.Builder
    interface Builder {

        @BindsInstance
        SignupComponent.Builder view(SignupContract.View view);

        SignupComponent.Builder appComponent(AppComponent appComponent);

        SignupComponent build();
    }
}